<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>开始使用layui</title>
  <link rel="stylesheet" href="${pageContext.request.contextPath }/resources/layui/css/layui.css">
  <script src="${pageContext.request.contextPath }/resources/layui/layui.js"></script>
</head>
<body>
<script>
layui.use(['layer'], function(){ 
    var $ = layui.jquery;
    $('body').append('hello jQuery');
});
</script>
</body>
</html>